package com.orion.app.domain.entity;

import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "asset_pur_req_seq")
public class AssetPurchaseRequest {

    @NotNull
    @ManyToOne
    private AssetItem assetItem;

    @Size(max = 50)
    private String model;

    @Size(max = 100)
    private String quantity;

    @Size(max = 100)
    private String estimatedCost;

    @ManyToOne
    private AssetPurchaseReason purchaseReason;

    @Size(max = 200)
    private String remarks;
}
